package com.aios.dao;

import com.aios.entity.SwitchPanel;
import com.aios.entity.SystemUserHasSwitchPanelExample;
import com.aios.entity.SystemUserHasSwitchPanelKey;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import com.aios.entity.SystemUserHasSwitchPanel;

public interface SystemUserHasSwitchPanelMapper {

	int countByExample(SystemUserHasSwitchPanelExample example);

	int deleteByExample(SystemUserHasSwitchPanelExample example);

	int deleteByPrimaryKey(SystemUserHasSwitchPanelKey key);

	int insert(SystemUserHasSwitchPanel record);

	int insertSelective(SystemUserHasSwitchPanel record);

	List<SystemUserHasSwitchPanel> selectByExample(
			SystemUserHasSwitchPanelExample example);

	SystemUserHasSwitchPanel selectByPrimaryKey(SystemUserHasSwitchPanelKey key);

	int updateByExampleSelective(
			@Param("record") SystemUserHasSwitchPanel record,
			@Param("example") SystemUserHasSwitchPanelExample example);

	int updateByExample(@Param("record") SystemUserHasSwitchPanel record,
			@Param("example") SystemUserHasSwitchPanelExample example);

	int updateByPrimaryKeySelective(SystemUserHasSwitchPanel record);

	int updateByPrimaryKey(SystemUserHasSwitchPanel record);
	
	@Select("SELECT SYSTEM_USER_ID FROM system_user_has_switch_panel WHERE SWITCH_PANEL_ID = #{id}")
 	String findByPannelId(@Param("id") String id);

}